﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessagePlanAudit.aspx.cs" Inherits="MedicareNoteManagerWeb.MessageTemplatesAudit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Css/TableStyle.css" rel="stylesheet" type="text/css" />
    <link href="../lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
           <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script> 
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
<%--    <script type="text/javascript">
            var win1;
        function f_open() {
            if (win1) win1.show();
            else win1 = $.ligerDialog.open({ height: 400, url: 'ReadMessagePlan.aspx?planID="+model.PlanID+"', width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
        }
     </script>--%>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:100%; margin-top:3%">
    <center>
    <div style="width:96%; text-align:left">
                <asp:Label ID="Label1" runat="server" Text="待审批短信计划" Font-Bold="True" 
            Font-Size="XX-Large" ForeColor="Gray"></asp:Label>
        <table style="width:100%">
            <tr align="right">
            <td>
            </td>
                <td align="right" style="width:200px;">
                    <asp:Label ID="Label2" runat="server" Text="计划名称：" Font-Bold="True" Font-Size="Large">
                    </asp:Label><asp:TextBox ID="tb_PlanName" runat="server" Width="100px"></asp:TextBox>
                </td>
                <td align="right" style="width:150px">
                    <asp:Label ID="Label3" runat="server" Text="模板：" Font-Bold="True" 
                        Font-Size="Large"></asp:Label>
                    <asp:DropDownList ID="ddl_PlanState" runat="server">
                    </asp:DropDownList>
                    </td>
                    <td align="right" style="width:60px">
                    <asp:Button ID="btn_Select" runat="server" Text="查询" 
                        onclick="btn_Select_Click" CssClass="l-button" />
                </td>
            </tr>
            <tr>
                <td colspan="4" style="padding-top:1%;">
                     <asp:GridView ID="Grd_User" runat="server" CssClass="l-grid" 
                         AutoGenerateColumns="False" Width="100%" Font-Bold="True" 
                         Font-Size="X-Large" onrowcommand="Grd_User_RowCommand" BackColor="White" 
                         BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                         AllowPaging="True" onpageindexchanging="Grd_User_PageIndexChanging">
                        <EmptyDataTemplate>
                                <div style="background-color: #FFFFD6; color: #ff0000; text-align: center; font-size: 18px">
                                    暂时没有要审查的短信模板!
                                </div>
                        </EmptyDataTemplate>
                        <AlternatingRowStyle CssClass="l-grid-row" />
                        <Columns>
                        <asp:TemplateField HeaderText="计划ID" Visible="false">
                                    <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_PlanID" Text='<%# Eval("planid") %>' Font-Size="Medium"></asp:Label>
                                        <input id="btn_read" type="button" value="浏览"  onclick='$.ligerDialog.open({ height: 400, url: "ReadMessagePlan.aspx?planID=<%# Eval("planid") %>", 
                                        width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });' 
                                        style="background-color:transparent;border:0; color:#0000D8; font-weight: bold;cursor:hand;"/>
                                        <%--<asp:LinkButton ID="lb_Read" runat="server"  CommandName="read" OnClientClick="$.ligerDialog.open({ height: 400, url: 'ReadMessagePlan.aspx?planID=<%# Eval('planid') %>', 
                                        width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });">浏览</asp:LinkButton>--%>
                                    
                                    </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="计划名称">
                                    <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_PlanName" Text='<%# Eval("planname") %>' Font-Size="Medium"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="计划说明">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_PlanExplian" Text='<%# Eval("planexplain") %>' Font-Size="Medium"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="模板名称">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_Template" Text='<%# Eval("MoubleName") %>' Font-Size="Medium"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            <asp:TemplateField HeaderText="执行时间">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_SendTime" Text='<%# Eval("sendtime","{0:yyyy-MM-dd}") %>' Font-Size="Medium"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
<%--                            <asp:TemplateField HeaderText="申请时间">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_ApplyTime" Text='<%# Eval("applytime") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <input id="btn_read" type="button" value="浏览"  onclick='$.ligerDialog.open({ height: 400, url: "ReadMessagePlan.aspx?planID=<%# Eval("planid") %>", 
                                        width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });' 
                                        style="background-color:transparent;border:0; color:#0000D8; font-weight: bold;cursor:hand;"/>
                                        <%--<asp:LinkButton ID="lb_Read" runat="server"  CommandName="read" OnClientClick="$.ligerDialog.open({ height: 400, url: 'ReadMessagePlan.aspx?planID=<%# Eval('planid') %>', 
                                        width: 600, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });">浏览</asp:LinkButton>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lb_Pass" runat="server" CommandName="pass">通过</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                    <asp:TemplateField HeaderText="">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lb_Return" runat="server" CommandName="return">退回</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                        </Columns>
                         <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle CssClass="l-grid-row" BackColor="#006699" Font-Bold="True" 
                             ForeColor="White" HorizontalAlign="Center" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="right" />
         <PagerTemplate>
                当前第:
                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                页/共:
                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                页
                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                转到第
                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                    CommandName="Page" Text="GO" />
            </PagerTemplate>
                            <RowStyle CssClass="l-grid-row" ForeColor="#000066" />
                         <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                         <SortedAscendingCellStyle BackColor="#F1F1F1" />
                         <SortedAscendingHeaderStyle BackColor="#007DBB" />
                         <SortedDescendingCellStyle BackColor="#CAC9C9" />
                         <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </center>
    </div>
    </form>
</body>
</html>
